package com.example.stuapi.controller;

import com.example.stuapi.pojo.gpaNum;
import com.example.stuapi.pojo.sqlNum;
import com.example.stuapi.service.sqlNumService;
import com.example.stuapi.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class sqlNumController {
    @Autowired
    private com.example.stuapi.service.sqlNumService sqlNumService;
    @GetMapping("/queryAllsql")
    public ResponseResult<List<sqlNum>> queryAllsql (){
        List<sqlNum>pf =sqlNumService.queryAllsql();
         return new ResponseResult<>("200","查询成功",pf);
    }
}
